import request from '@/utils/request'

// 查询商品监控列表
export function listGoodsMonitor(query) {
  return request({
    url: '/goods/goodsMonitor/list',
    method: 'post',
    data: query
  })
}

// 查询商品监控详细
export function getGoodsMonitor(id) {
  return request({
    url: '/goods/goodsMonitor/' + id,
    method: 'get'
  })
}

// 新增商品监控
export function addGoodsMonitor(data) {
  return request({
    url: '/goods/goodsMonitor/add',
    method: 'post',
    data: data
  })
}

export function saveGoodsMonitor(data) {
  return request({
    url: '/goods/goodsMonitor/save',
    method: 'post',
    data: data
  })
} 

// 修改商品监控
export function updateGoodsMonitor(data) {
  return request({
    url: '/goods/goodsMonitor/update',
    method: 'post',
    data: data
  })
}

// 删除商品监控
export function delGoodsMonitor(id) {
  return request({
    url: '/goods/goodsMonitor/delete/' + id,
    method: 'post'
  })
}
